import { sendRequest } from '@/http';

/**
 * 获取账号列表
 */
export function getRolePermissions(params: any) {
  return sendRequest({
    url: `/admin/rp/roles`,
    method: 'get',
    params,
  });
}

/**
 * 删除账号
 */
export function deleteRole(accountId: string) {
  return sendRequest({
    url: `/admin/rp/deleteRole`,
    method: 'post',
    data: { accountId },
  });
}

export function getAllPermissions() {
  return sendRequest({
    url: `/admin/rp/permissions`,
    method: 'get',
  });
}
